<ion-header no-border align-title="center">

  <ion-navbar color="primary">
    <ion-title mode="ios">{{page_title}}房间</ion-title>

    <ion-buttons end class="empty-button">
      <button ion-button >
        <ion-icon></ion-icon>
      </button>
    </ion-buttons>
  </ion-navbar>

</ion-header>

<ion-content padding>
  <form [formGroup]="roomForm">
    <ion-list>
      <ion-item>
        <ion-label color="primary" fixed>地址：</ion-label>
        <ion-select interface="popover" placeholder="选择地址" formControlName="build_id">
          <ion-option *ngFor="let build of builds" [value]="build.build_id">{{build.build_address}}</ion-option>
        </ion-select>
      </ion-item>
      <ion-item>
        <ion-label color="primary" fixed>房间名称：</ion-label>
        <ion-input type="text" formControlName="room_name"></ion-input>
      </ion-item>
    </ion-list>
    <ion-grid text-center>
      <ion-row>
        <ion-col>
          <button ion-button class="button-full" (click)="save(roomForm.value, $event)" [disabled]="!roomForm.valid">保存</button>
        </ion-col>
      </ion-row>
    </ion-grid>
  </form>
</ion-content>
